import request from '@/utils/request'
var PATH = "/collect"
export default {
    //获取是不是收藏
    getCmID(cmId) {
        return request({
            url: `${PATH}/info?cmId=${cmId}`,
            method: "get",
        })
    },
    
    //添加收藏
    saveCollect(cmId){
        return request({
            url: `${PATH}/save`,
            method: "post",
            data:cmId
        })
    },


    //取消收藏
    deleteScollect(cmId){
        return request({
            url: `${PATH}/delete?cmId=${cmId}`,
            method: "delete",
        })
    }
}